<template>
  <div class="card">
    <div class="title">{{rules.title}}</div>
    <div class="rules-wrapper">
      <ul v-if="rules.description" class="rules-wrapper">
        <li v-for="(item, index) in rules.description" :key="index">{{rules.description[index].content}}</li>
      </ul>
      <p>*注：如有任何作弊行为，一经发现立即取消活动资格</p>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'rules',
    props: {
      rules: {
        type: Object,
        default () {
          return {}
        }
      }
    }
  }
</script>

<style lang="scss">
  @import '../../common/sass/var';
  .rules-wrapper {
    padding: 0 10px;
    li {
      margin-bottom: 15px;
    }
  }
  p {
    color: $color-light-gray;
    font-size: 12px !important;
    text-align: center;
  }
</style>
